package com.t235.gc.collector.service;

import com.t235.gc.dao.HomeRecyclingDetailOrderDao;
import com.t235.gc.entity.HomeRecyclingDetailOrder;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomeRecyclingDetailOrderService {
    @Resource
    private HomeRecyclingDetailOrderDao homeRecyclingDetailOrderDao;

    public List<HomeRecyclingDetailOrder> selectOrder(String orderId) {
        return homeRecyclingDetailOrderDao.selectOrder(orderId);
    }

    public int insert(HomeRecyclingDetailOrder order) {
        return homeRecyclingDetailOrderDao.insertSelective(order);
    }

    public int update(HomeRecyclingDetailOrder order) {
        return homeRecyclingDetailOrderDao.updateByPrimaryKeySelective(order);
    }
}
